<template>
  <div id="app">
    <router-view v-if="activeRouter"/>
  </div>
</template>

<script>
  export default {
    name: "app",
    data() {
      return {
        activeRouter: true
      };
    },
    provide() {
      return {
        reload: this.reload
      }
    },
    watch: {},
    methods: {
      reload() {
        this.activeRouter = false
        this.$nextTick(() => {
          this.activeRouter = true
        })
      }
    },
    computed: {}
  };
</script>
<style lang="scss">
  #app {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
</style>
